<!doctype html>
<html lang="zh-CN" ng-app="myapp">
	<head>
	<!-- 不缓存页面 -->
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		  
		<meta charset="utf-8">
		<script src="/frame/angular_js/angular.js"></script>
		<script src="/frame/ui-bootstrap/ui-bootstrap-tpls-0.12.1.js"></script>
		<script src="/js/app.js"></script>
		<link rel="stylesheet" href="/my_css/main.css">
		<link rel="stylesheet" href="/frame/bootstrap-3.3.4/css/bootstrap.css">
	</head>
	<body ng-controller="bodyCtrl">
	<!-- 弹出的框内容开始，登录模态框  'ModalInstanceCtrl
	<script type="text/ng-template" id="mylogin.html">
		<div>aaaaaaaaaaa</div>
	</script>-->
	<!-- 页头 -->
	<div class="my-yetou">
		<span class="my-ytwenz">南牧图纸管理</span>
		<span class="my-yetou-nameshow">{{CName}}</span>
	</div>
	<div class="container-fluid">
		<div class="row">
  			<div class="col-md-3" ng-controller="AccordionCtrl">
				<accordion close-others="oneAtATime"><!-- 1同一时间只有一个打开 -->
						<accordion-group class="my-accor-group" heading="{{group.title}}" ng-repeat="group in groups">
							<div class="list-group"><!-- 图纸列表 -->
							<!-- 单击后就选择这个项目下的这个文件夹名作为当前显示的项目 -->
								<a  ng-repeat="list in group.lists" class="list-group-item" href="" ng-click="choseFile(group.title,list.listname)">{{list.listname}}</a>
							</div>
							<button type="button" ng-click="addProject($index)" class="btn btn-success"><!-- 添加图纸组 -->
  								<span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> 添加图纸组
							</button>
						</accordion-group>
				</accordion>
  			</div>
  			<div class="col-md-9 " ng-controller="mainListCtrl">
  			<!-- 项目文件的显示处 -->
	  			<div class="panel panel-success" >
	  				<div class="panel-heading" style="overflow:hidden"><!-- overflow消除pull-right的影响 -->
	  					<span style="font-size:20px">{{$root.listLocalTip}}</span><!-- 显示当前的目录页面位置如 项目1/电箱图纸 -->
	  					<button type="button" ng-click="addTuzhi($root.listLocalTip)" class="btn btn-success pull-right"><!-- 添加图纸组 --><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> 上传图纸
						</button>
	  				</div>
	  				<div class="panel-body" style="padding:0px">
	  					{{$root.currentTuzhi}}
						<!-- 显示当前文件下的图纸的表格 -->
						<table class="table table-bordered table-condensed table-striped ">
							<thead style="background-color:rgb(230,199,199);">
								<tr>
									<th>序号</th>
									<th>文件名</th>
									<th>上传时间</th>
									<th>上传人</th>
									<th>版本备注</th>
									<th>历史版本</th>
									<th>预览</th>
									<th>下载</th>
								</tr>
							</thead>
							<tbody>
								<tr ng-repeat="item in $root.currentTuzhi[0].currentlist">
									<th>{{$index+1}}</th>
									<th>{{item.tuzhilist}}</th>
									<th>{{item.uploadTime}}</th>
									<th>{{item.author}}</th>
									<th>{{item.beizhu}}</th>
									<th>{{item.tuzhilist}}</th>
									<th>{{item.tuzhilist}}</th>
								</tr>
							</tbody>
						</table>
	  				</div>
	  				
	  			</div>
  			</div>
		</div>
	</div>
	</body>
</html>